package vn.edu.ptithcm.pim.service;

import vn.edu.ptithcm.pim.dom.TaskCategory;

import java.util.List;

import vn.edu.ptithcm.pim.dao.TaskCategoryDao;

@SuppressWarnings({ "rawtypes" })
public class TaskCategoryService {
	private TaskCategoryDao taskCategoryDao;

	public TaskCategoryDao getTaskCategoryDao() {
		return taskCategoryDao;
	}

	public void setTaskCategoryDao(TaskCategoryDao taskCategoryDao) {
		this.taskCategoryDao = taskCategoryDao;
	}

	public void save(TaskCategory taskCategory) {
		taskCategoryDao.save(taskCategory);
	}

	public void saveOrUpdate(TaskCategory taskCategory) {
		taskCategoryDao.saveOrUpdate(taskCategory);
	}

	public void lock(TaskCategory taskCategory) {
		taskCategoryDao.lock(taskCategory);
	}

	public void delete(TaskCategory taskCategory) {
		taskCategoryDao.delete(taskCategory);
	}

	public TaskCategory merge(TaskCategory taskCategory) {
		return taskCategoryDao.merge(taskCategory);
	}

	public TaskCategory findById(java.lang.Long id) {
		return taskCategoryDao.findById(id);
	}

	public List findByExample(TaskCategory taskCategory) {
		return taskCategoryDao.findByExample(taskCategory);
	}

	public List getAll() {
		return taskCategoryDao.getAll();
	}

	public List<TaskCategory> getCategoriesToReport(Long projectId) {
		return taskCategoryDao.getCategoriesToReport(projectId);
	}
}
